package Mutation;

import FunctionsGA.BinaryGen;
import GA.Gene;
import GA.Mutation;

public class BinaryMutation  extends Mutation{

	public BinaryMutation(double mutationProb) {
		super(mutationProb);
	}

	protected Gene mutate(Gene gen) {
		boolean mutatedGene = !((BinaryGen)gen).getGene();
		((BinaryGen)gen).setGene(mutatedGene);
		return gen;
	}
	

}
